﻿using System;
using System.Collections.Generic;

using DreamCube.Foundation.Serialization;
using DreamCube.Framework.DataAccess.Basic;

namespace DreamCube.Websites.BLL
{
    /// <summary>
    /// 档案分类对象（节点）
    /// </summary>
    public class ArchiveClass : ModelObject
    {
        #region "字段"

        private List<ArchiveClass> subClass = new List<ArchiveClass>();

        #endregion

        #region "属性"

        /// <summary>
        /// 表名
        /// </summary>
        [JsonIgnore]
        public static String TableName
        {
            get { return "SYS_ARCHIVECLASS"; }
        }

        /// <summary>
        /// 分类的ID号
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }

        /// <summary>
        /// 分类所属的系统ID
        /// </summary>
        public Int32 SystemID
        {
            get;
            set;
        }

        /// <summary>
        /// 分类的父类目ID号
        /// </summary>
        public Int32 ParentID
        {
            get;
            set;
        }

        /// <summary>
        /// 分类的标题
        /// </summary>
        public String Title
        {
            get;
            set;
        }

        /// <summary>
        /// 分类的数据视图脚本
        /// </summary>
        public String ViewSql
        {
            get;
            set;
        }

        /// <summary>
        /// 排序序号
        /// </summary>
        public Int32 OrderIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 子分类
        /// </summary>
        public List<ArchiveClass> SubClass
        {
            get { return this.subClass; }
        }

        #endregion
    }
}
